package com.zy.learn.bean.factorybean;

import org.springframework.beans.factory.FactoryBean;

import javax.annotation.Resource;

@Resource
public class MyFactoryBean implements FactoryBean<FactoryInstanceBean> {

	@Override
	public FactoryInstanceBean getObject() throws Exception {
		return new FactoryInstanceBean();
	}



	@Override
	public Class<?> getObjectType() {
		return FactoryInstanceBean.class;
	}
}
